.class Lcom/example/m6wmr/GiftActivity$3;
.super Ljava/lang/Object;
.source "GiftActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/GiftActivity;->selectonegiftdata()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/GiftActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/GiftActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/GiftActivity$3;->this$0:Lcom/example/m6wmr/GiftActivity;

    .line 238
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 7
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 240
    invoke-static {}, Lmyapp/Util;->isFastDoubleClick()Z

    move-result v4

    if-eqz v4, :cond_0

    .line 260
    :goto_0
    return-void

    .line 245
    :cond_0
    sget-object v4, Lcom/example/m6wmr/GiftActivity;->GiftAc:Lcom/example/m6wmr/GiftActivity;

    const v5, 0x7f0c0264

    invoke-virtual {v4, v5}, Lcom/example/m6wmr/GiftActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    .line 247
    .local v0, "bushuliang":Landroid/widget/EditText;
    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v4

    invoke-interface {v4}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v4

    .line 248
    const-string v5, "%"

    const-string v6, ""

    invoke-virtual {v4, v5, v6}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const-string v5, " "

    const-string v6, ""

    invoke-virtual {v4, v5, v6}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v3

    .line 249
    .local v3, "tbushuliang":Ljava/lang/String;
    invoke-static {v3}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    move-result v4

    add-int/lit8 v1, v4, 0x1

    .line 250
    .local v1, "checkshu":I
    const-string v4, "GiftActivity"

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "\u5f53\u524d\u5546\u54c1\u5e93\u5b58"

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v6, p0, Lcom/example/m6wmr/GiftActivity$3;->this$0:Lcom/example/m6wmr/GiftActivity;

    # getter for: Lcom/example/m6wmr/GiftActivity;->nowgiftstock:Ljava/lang/String;
    invoke-static {v6}, Lcom/example/m6wmr/GiftActivity;->access$6(Lcom/example/m6wmr/GiftActivity;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 252
    iget-object v4, p0, Lcom/example/m6wmr/GiftActivity$3;->this$0:Lcom/example/m6wmr/GiftActivity;

    # getter for: Lcom/example/m6wmr/GiftActivity;->nowgiftstock:Ljava/lang/String;
    invoke-static {v4}, Lcom/example/m6wmr/GiftActivity;->access$6(Lcom/example/m6wmr/GiftActivity;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    move-result v4

    if-le v1, v4, :cond_1

    .line 253
    iget-object v4, p0, Lcom/example/m6wmr/GiftActivity$3;->this$0:Lcom/example/m6wmr/GiftActivity;

    # getter for: Lcom/example/m6wmr/GiftActivity;->mcontext:Landroid/content/Context;
    invoke-static {v4}, Lcom/example/m6wmr/GiftActivity;->access$3(Lcom/example/m6wmr/GiftActivity;)Landroid/content/Context;

    move-result-object v4

    const-string v5, "\u793c\u54c1\u5e93\u5b58\u4e0d\u8db3"

    const-string v6, "\u589e\u52a0\u5931\u8d25"

    invoke-static {v4, v5, v6}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 257
    :cond_1
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v4}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 258
    sget-object v4, Lcom/example/m6wmr/GiftActivity;->GiftAc:Lcom/example/m6wmr/GiftActivity;

    const v5, 0x7f0c0262

    invoke-virtual {v4, v5}, Lcom/example/m6wmr/GiftActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 259
    .local v2, "shuliang":Landroid/widget/TextView;
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0
.end method
